<template>
  <aside class="el-aside" :style="{ width }">
    <slot></slot>
  </aside>
</template>

<script setup lang="ts">
import { withDefaults } from "vue";

type PropValues = {
  width: string;
};
withDefaults(defineProps<PropValues>(), {
  width: "300px",
});

defineOptions({ name: "ElAside" });
</script>

<style lang="scss">
@import "../styles/mixin";
@include b(aside) {
  overflow: auto;
  box-sizing: border-box;
  flex-shrink: 0;
}
</style>
